<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page isELIgnored="false" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<style type="text/css" rel="stylesheet">
    table {
        font-size: 13px;
        color: #FFFFFF;
        width: 100%;
        height: 100%;
        background: #409EFF;
    }

    #nowTime {
        padding-left: 30px;
    }

    #userInfo {
        text-align: right;
        padding-right: 30px;
        width: 75%;
    }

    #userInfo input {
        width: 65px;
        height: 25px;
        background: #BBDCFE;
        border: 0;
        border-radius: 5px;
    }

    #userInfo input:hover {
        background: #C3FFA6;
    }
</style>
<script type="text/javascript">
    function current() {
        var d = new Date(),
            str = '';
        str += d.getFullYear() + '年'; //获取当前年份
        str += d.getMonth() + 1 + '月'; //获取当前月份（0——11）
        str += d.getDate() + '日 ';
        str += d.getHours() + ':';
        str += d.getMinutes() + ':';
        str += d.getSeconds();
        document.getElementById("timer").innerHTML = str;
    }

    window.onload = function () {
        setInterval("current()", 1000)
    }
</script>

<table>


    <tr>
        <td>
            <p style="font-size: 22px">郑州经贸学院</p>
        </td>
        <td id="nowTime">
            <p>现在时间：<span id="timer"></span></p>
        </td>
        <td id="userInfo">
            <p>【<b>${loginUserInfo.name}</b>】用户&nbsp&nbsp
                <input type="button" value="个人中心" onclick="window.open('UserServlet?action=userSelfInfo','userMain')">
                <input type="button" value="安全退出" onclick="window.open('UserServlet?action=userLogout','_parent')"></p>
        </td>
    </tr>
</table>